<link href="__CDN__/assets/css/backendtable.css" rel="stylesheet">
<style>
    .input-goods_name{cursor: pointer; border:1px solid #ccc; height: 31px; padding: 6px 12px;}
    .pageMenu li::selection{background:transparent;}
    .clearfix{zoom:1;}


    .notContent{padding: 15px 0;text-align: center;}

    .page{text-align: center;width: 100%;margin: 0 auto; overflow: hidden;}
    .pageMenu{display: inline-block;position: relative;float:left;}

    .pageMenu li{border: solid thin #ddd;margin: 3px;float: left;padding: 2px 5px;cursor: pointer;background: #fff;}
    .pageMenu li.firstPage{}
    .pageMenu li.prevPage{}
    .pageMenu li.pageNum{}
    .pageMenu li.nextPage{}
    .pageMenu li.lastPage{}
    .pageMenu li.disabled{ background-color: #DDDDDD;   cursor: not-allowed;}
    .pageMenu li.active{ border: solid thin #0099FF;background-color: #0099FF;color: white;}
    .pageMenu li.last{background: transparent;border:0;position: relative;top: -4px;}
    .page .keuInput{padding: 0 5px;width: 30px;border: solid thin #ddd;height: 29px;outline: none;text-align: center;font-size: 16px;}
    .page .btnSure{padding: 4px 8px;border: solid thin #ddd;outline: none;text-align: center;font-size: 16px;background: #fff;position: relative;top: 2px;}
    .page .btnSure:hover{cursor: pointer;}
    .pageObj{float: left;}
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
            <div class="row col-xs-12" style="padding-left:5%;">
                <table class="table table-bordered " id="goods_list-tab">
                    <tbody>
                    <tr>
                        <th style="width: 50px; max-width: 50px;">序号</th>
                        <th style="width: 100px; max-width: 100px;">操作</th>
                        <th style="width: 300px;">商品名称</th>
                        <th style="width: 100px;">数量</th>
                        <th>备注</th>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td >
                            <a href="javascript:;" class="btn btn-xs btn-success btn-addone" title=""><i class="fa fa-plus"></i></a>
                        </td>
                        <td style="position: relative;">
                            <input id="goods_id"  name="row[goods][goods_id][]" type="hidden" value="">
                            <div class="input-goods_name">输入商品名称</div>
                            <input id="c-goods_name" class="form-control selectdom goods_name" style="display: none;"  name="row[enter_number][]" type="text" value="" placeholder="商品名称">
                            <div class="col-xs-12 serchGoodsBox row sp_result_area shadowUp">
                                <ul class="sp_results goods_list pageDiv">
                                </ul>
                                <div class="page">
                                    <ul class="pageMenu clearfix">
                                        <li class="firstPage">首页</li>
                                        <li class="prevPage"> < </li>
                                        <div class="pageObj clearfix">

                                        </div>
                                        <li class="nextPage"> > </li>
                                        <li class="lastPage">尾页</li>

                                    </ul>
                                </div>
                            </div>
                            <a href="javascript:;" class="btn btn-xs btn-success btn-more fagoods"  data-input-id="c-image" data-mimetype="image/*" data-multiple="false" title=""><i class="fa fa-ellipsis-h"></i></a>
                        </td>
                        <td><input id="c-num" data-storenum="" class="form-control" name="row[goods][goods_num][]" type="number" value="1" min="1"></td>
                        <td><input id="c-remark" class="form-control" name="row[goods][remark][]" type="text" value="" placeholder="请输入备注信息，最多不超过200字"></td>
                    </tr>
                    </tbody>
                </table>
                <input id="goods_ids" class="form-control" name="row[goods_ids]" type="hidden" value="" >
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-enter_number" class="control-label col-xs-12 col-sm-3">*{:__('入库单号')}:</label>
                        <div class="col-xs-6 col-sm-6">
                            <input id="c-number" class="form-control" type="text" disabled="disabled" value="{:getOrderNo('DH-O');}" placeholder="请输入入库单号" data-rule="required">
                            <input name="row[nb]" type="hidden" value="{:getOrderNo('DH-O');}">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-createtime" class="control-label col-xs-12 col-sm-3">*{:__('入库类型')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <select id="c-type" data-rule="required" class="form-control" name="row[type]">
                                <option value="0">要货入库</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-enter_number" class="control-label col-xs-12 col-sm-3">{:__('制单人')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-enter_number" class="form-control"  name="row[operate_uid]" type="text" value="{$auth->nickname}" disabled="disabled"  data-rule="required">
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-createtime" class="control-label col-xs-6 col-sm-3">*{:__('入库日期')}:</label>
                        <div class="col-xs-6 col-sm-5">
                            <input id="c-createtime" class="form-control datetimepicker" name="row[deliverydate]" type="text" value="{:date('Y-m-d H:i:s', time())}" placeholder="请选择日期" data-rule="required">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row col-xs-12">
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-remark" class="control-label col-xs-12 col-sm-3">{:__('Githouse_id')}:</label>
                        <div class="col-xs-12 col-sm-9">
                            <div class="form-control" style="height: 50px;">
                                <div class="address-add-admin">
                                    <input type="hidden" class="addressId yl-add-del" name="row[githouse_id]" autocomplete="off" value="{$Githouse.id}">
                                    <em class="yl-add-del">收货人：</em><span class="contactor yl-add-del">{$Githouse.lxr}</span>
                                    <em class="yl-add-del"> 联系电话：</em><span class="mobile yl-add-del">{$Githouse.mobile}</span>
                                    <em class="yl-add-del">收货地址：</em><span class="address yl-add-del">{$Githouse.province_text},{$Githouse.city_text},{$Githouse.area_text},{$Githouse.address}</span>
                                    <a href="javascript:void(0)" id="address-edit-admin" data-orderId="" class="gray address-edit">
                                        <i class="fa fa-pencil"></i><span class="ui-btn-txt">修改地址</span></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label for="c-remark" class="control-label col-xs-12 col-sm-3">{:__('备注')}:</label>
                        <div class="col-xs-12 col-sm-9">
                            <textarea  class="form-control" name="row[remark]" placeholder="请输入备注信息，最多不超过200字" style="height:90px;"></textarea>
                        </div>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </form>
    </div>
</div>